package com.lindroid.entity

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.PropertySource


@Configuration
@ConfigurationProperties(prefix = "com.lindroid.opensource") //跟resource.properties中的一样
@PropertySource("classpath:resource.properties")
class Resource {
    var name: String? = null
    var website: String? = null
    var language: String? = null
    override fun toString(): String {
        return "Resource(name=$name, website=$website, language=$language)"
    }


}
/*data class Resource(
    val name: String? = "",
    val website: String? = "",
    val language: String? = ""
)*/


